package contegor.scire.core.queries;

import contegor.scire.core.Concept;
import contegor.scire.core.Container;
import contegor.scire.core.Id;

/**
 * {@link Query} that returns {@link Concept}s that are inside the {@link Container} who's {@link Id}s is given
 * to the constructor.
 *
 * @version $Revision$
 * @author  Héctor Cirbián Pousa ($Author$)
 */
public class GetConceptsIn extends Query<Concept> {
  private static final long serialVersionUID = -2820319882562270483L;

  public GetConceptsIn(Id containerId) {
    super(containerId);
  }

  @Override
  public void process(Container targetContainer) {
    this.returnPoint.manage(this.taskId, targetContainer.getConcepts());
  }
}